"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const fs_1 = __importDefault(require("fs"));
const path_1 = __importDefault(require("path"));
const createDirectory_1 = __importDefault(require("./createDirectory"));
function createFile(filePath, data) {
    let dirPath = path_1.default.dirname(filePath) + '\\';
    (0, createDirectory_1.default)(dirPath);
    if (fs_1.default.existsSync(filePath)) {
    }
    else {
        fs_1.default.writeFileSync(filePath, data);
    }
}
exports.default = createFile;
